package com.liner.homework.second;

public class Dog extends Animal implements Swim{
    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(name + "的年龄是 " + age + "，颜色是: " + color + "正在吃骨头...");

    }

    void lookHome(){
        System.out.println(name + "的年龄是 " + age + "，颜色是: " + color + "正在看家...");

    }

    @Override
    public void swim() {
        System.out.println(name + "的年龄是 " + age + "，颜色是: " + color + "正在狗刨...");

    }
}
